import java.nio.file.Path;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author dreamcatcher
 * @date 2022/3/2 20:22
 * 定位符
 */
public class RegExp06 {
    public static void main(String[] args) {
        String regExp = "abc\\b";
        String content = "abcddd dddabc abcddd";

        Pattern pattern = Pattern.compile(regExp);
        Matcher matcher = pattern.matcher(content);

        while (matcher.find()){
            System.out.println(matcher.group(0));
        }
    }
}
